<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p th:text="${hello}"></p>
<p>我们的模板引擎</p>
<table border="1" width="90%">
    <thead>
    <tr>
        <th>序号</th>
        <th>书名</th>
        <th>作者</th>
        <th>日期</th>
    </tr>
    </thead>
<tbody>
<tr th:each="book: ${BookList}">
    <td th:text="${book.id}"></td>
    <td th:text="${book.title}"></td>
    <td th:text="${book.name}"></td>
    <td th:text="${#dates.format(book.creatdate,'yyyy-MM-dd')}"></td>
</tr>
</tbody>
</table>
</body>
</html>